/**
 * 信用卡控制器
 * fanzhongxing
 */

const creditService = require('../service/creditService.js');

/**
 * 获取信用卡列表
 */
const getCreditList = async (params) => {
  return creditService.getCreditList(params);
}

/**
 * 获取信用卡信息
 */
const getCreditInfo = async (params) => {
  return creditService.getCreditInfo(params);
}

/**
 * 添加信用卡
 */
const addCredit = async (params) => {
  return creditService.addCredit(params);
}

/**
 * 删除信用卡
 */
const delCredit = async (params) => {
  return creditService.delCredit(params);
}

/**
 * 修改信用卡信息
 */
const editCredit = async () => {
  return creditService.editCredit();
}

module.exports = {
  getCreditList,
  getCreditInfo,
  addCredit,
  delCredit,
  editCredit
};